package matlap.client.services.article;

import java.util.List;

import matlap.shared.Article;
import matlap.shared.Author;
import matlap.shared.Topic;
import matlap.shared.exceptions.MyException;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

/**
 * The client side stub for the RPC service.
 */
@RemoteServiceRelativePath("article")
public interface ArticleService extends RemoteService {

	List<Author> selectAuthorName() throws MyException;

	List<Topic> selectTopicsName();

	List<Article> selectArticle(String articleName, String topicName,
			String authorName);

	boolean insertArticle(String address, String authorName, String topicsName,
			String fileName, String path) throws MyException;

	void insertAuthor(String authorName, String localityName);

	void insertTopic(String name);

	int getArticlesNumber();
}
